Skip to content

02 12 25#68

Open
antonboev22 wants to merge 8 commits intodimonaks:masterfrom
antonboev22:master
Open

02 12 25#68
antonboev22 wants to merge 8 commits intodimonaks:masterfrom
antonboev22:master

Conversation

@antonboev22
Copy link
Contributor

  1. Functionality for constrained AIMD calculations:
    - set VASP params
    - additional file ICONST pushing to server. Constrains should be given as list of strings under parameter 'iconst_str' = ['R 98 172 0\n', 'R 98 202 0\n'] for example
    -

  2. plot_energy_total_step2() - method for Calculation() allowing to plot E_tot(t) dependence for AIMD calculations

  3. remove_atoms_randomly(self, el, n_at2remove, clear_magmom = 1) - method for Calculation()

  4. Some minor changes

Copy link
Owner

@dimonaks dimonaks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Доработай Тох плиз по комментам моим

@@ -717,6 +715,11 @@ def actualize_set(self, curset = None, params = None):
if hasattr(self.init, 'magmom') and hasattr(self.init.magmom, '__iter__') and not None in self.init.magmom and bool(self.init.magmom):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут дичь получилась, два раза один и тот же код вставить предлагает

plt.show()
return

def plot_energy_total_step(self,):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить описание

return

def plot_energy_total_step2(self,):
# print(self.maxforce)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить описание. Подумать над названием, сейчас непонятно в чем разница между функциями из названия



def read_oszicar(path_to_file):

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавить описание, перевести комменты


return child


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

убрать комментированные строки

return st

def exchange_axes_with_atoms(self, i1_r, i2_r):
"""
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

дописать описание, что значит rotate atoms?

return st

def remove_atoms_randomly(self, el, n_at2remove, clear_magmom = 1):
"""
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Привести описание в соответствие с нашим форматом. Добавить автора метода

from pymatgen.analysis.wulff import WulffShape
WS = WulffShape(lat, miller_list, e_surf_list)
# print(dir(WS))
print(WS.area_fraction_dict)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

использовать printlog(), добавить вывод что это? Иначе потом не найти этот print


if 'iconst_str' in params or ('LBLUEOUT' in cl.set.vasp_params and cl.set.vasp_params['LBLUEOUT'] == 1): #copy iconst file
if 'iconst_str' in params:
# with tempfile.NamedTemporaryFile('w', delete=False) as tmp:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

убрать лишние закомменченные строки

self.etotal = float(line.split()[4]) # Total energy in MD simulation
self.list_etotal.append(self.etotal)

if "kinetic energy EKIN =" in line:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это уже есть выше. Повторяет

# print(a)
nebmaker('POSCAR1','POSCAR2', images)
printlog('Starting nebmaker ...', imp = 'y')
nebmaker('POSCAR1','POSCAR2', images, idpp = False)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не надо выключять полностью , давай добавим параметр для add_neb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants